//
//  ShoppingModel.m
//  cm
//
//  Created by suyibaishan on 2017/10/30.
//  Copyright © 2017年 feihu. All rights reserved.
//

#import "ShoppingModel.h"

@implementation ShoppingModel

-(instancetype)initWithDictionary:(NSDictionary *)dictionary
{
    if (self = [super init])
    {
        self.imageName = dictionary[@"imgUrl"];
        self.goodsTitle = dictionary[@"productName"];
        self.caption = dictionary[@"caption"];
        self.goodsPrice = [dictionary[@"unitPrice"] floatValue];
        self.downPayment = [dictionary[@"downPayment"] floatValue];
        self.goodsNum = [dictionary[@"quantity"] integerValue];
        self.itemId = [dictionary[@"id"] integerValue];
        self.selectState = [dictionary[@"selected"] boolValue];
        self.productNo = dictionary[@"productNo"];
    }
    return  self;
}

@end
